import request from '@/util/request';

export const getList = function(param){
	var url = '/active/getList';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getDetail = function(param){
	var url = '/active/getDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const join = function(param){
	var url = '/active/join';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const confirmJoin = function(param){
	var url = '/active/confirmJoin';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyActive = function(param){
	var url = '/active/getMyActive';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const removeMyActive = function(param){
	var url = '/active/removeMyActive';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyActiveDetail = function(param){
	var url = '/active/getMyActiveDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getTopic = function(param){
	var url = '/community/getTopic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getDynamic = function(param){
	var url = '/community/getDynamic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getCommunity = function(param){
	var url = '/community/getCommunity';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const release = function(param){
	var url = '/community/release';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyRelease = function(param){
	var url = '/community/getMyRelease';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const likeDynamic = function(param){
	var url = '/community/likeDynamic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getDynamicDetail = function(param){
	var url = '/community/getDynamicDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getDynamicComment = function(param){
	var url = '/community/getDynamicComment';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const commentDynamic = function(param){
	var url = '/community/commentDynamic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getNews = function(param){
	var url = '/community/getNews';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getNewDetail = function(param){
	var url = '/community/getNewDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const delDynamic = function(param){
	var url = '/community/delDynamic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyComment = function(param){
	var url = '/community/getMyComment';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyForward = function(param){
	var url = '/community/getMyForward';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getMyLike = function(param){
	var url = '/community/getMyLike';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const forwardDynamic = function(param){
	var url = '/community/forwardDynamic';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getNewsComment = function(param){
	var url = '/community/getNewsComment';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const newsComment = function(param){
	var url = '/community/newsComment';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const newsLike = function(param){
	var url = '/community/newsLike';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getUnRead = function(param){
	var url = '/community/getUnRead';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}

export const getUnReadDetail = function(param){
	var url = '/community/getUnReadDetail';
	return request({
		method: 'post',
		url: url,
		data: param
	});
}